'''
Ferramentas genéricas multi-propósito

@author: hanniel
'''

def sgn(x):
    
    if (x<0):
        
        return(-1.0)
    
    elif x==0:
        
        return(0)
    
    elif x>0:
        
        return(1.0)
    
def is_within():
    
    pass